﻿using DimensionsHelper.LanguageService.Syntax;

namespace DimensionsHelper.LanguageService.Symbols;

/// <summary>
///     类方法定义，类似于<see cref="FunctionSymbol" />
/// </summary>
public class MethodSymbol : FunctionSymbol
{
    internal MethodSymbol(NamedTypeSymbol containingSymbol, MethodSignature signature) :
        base(signature, containingSymbol, containingSymbol.ContainingModule)
    {
        if (signature.IsDefault)
        {
            ModifierFlags |= TypeSymbolModifierFlags.Default;
        }
    }


    public override bool IsMethod => true;
}